<?php

/*
 *This is to save psychologst data.
 */
include '../../include/config.php';
mysql_query("INSERT INTO `baby_mother_pyco` (`sr`, `mother_id`, `p_name`, `p_address`, `p_city`, `p_country`, `p_tel`, `p_mobile`, `p_first_visit`, `p_last_visit`, `p_result`) VALUES (NULL, '".$_POST['mid']."', '".$_POST['p_doctor']."', '".$_POST['p_address']."', '".$_POST['p_city']."', '".$_POST['p_country']."', '".$_POST['p_tel']."', '".$_POST['p_mobile']."', '".date('Y-m-d', strtotime($_POST['p_first_visit']))."', '".date('Y-m-d', strtotime($_POST['p_last_visit']))."', '".$_POST['p_result']."');") or die(mysql_error()) ;
header('Location:../view/pre-pregnancy.php?menu=psychologist');
?>